<template>
    <div class="setting">
        <p>通知开关</p>
        <div class="item">
            支付完成通知<van-switch v-model="pay" size="16px" />
        </div>
        <div class="item">
            库存不足通知<van-switch v-model="stock" size="16px" />
        </div>
        <div class="item">
            发货通知<van-switch v-model="ship" size="16px" />
        </div>
        <div class="item">
            收货通知<van-switch v-model="receipt" size="16px" />
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            pay:false,//支付
            ship:true,//发货
            receipt:false,//收货
            stock: true,//库存
        }
    },
    mounted(){

    },
    methods:{
        /* async notice(){
            let {data:{code,data},} = await this.$axios({
                url: '/v1/platform/balance',
                method: 'GET',
                params: {
                    openid: this.openId
                }
            })
            if(code === 0){
                
            }
        } */
    }
}
</script>
<style lang="scss" scoped>
    .setting{
        
        min-height: 100vh;;
        background-color: #f1f1f1;
        p{
            padding: 0.2rem 0.2rem 0.1rem 0.2rem;
            color:#999
        }
        .item{
            display: flex;
            font-size: 14px;
            justify-content: space-between;
            justify-items: center;
            padding: 0.2rem;
            background-color: #fff;
            margin-bottom: 1px;
        }
    }
</style>